﻿using System.Web;
using System.Web.Optimization;

namespace Gx.ColdWarehouseErp
{
    public class BundleConfig
    {
        // 有关 Bundling 的详细信息，请访问 http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {

            // 使用 Modernizr 的开发版本进行开发和了解信息。然后，当你做好
            // 生产准备时，请使用 http://modernizr.com 上的生成工具来仅选择所需的测试。
            //bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
            //            "~/Scripts/modernizr-*"));
            //启用压缩
            BundleTable.EnableOptimizations = false;
            bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/css/helper.css"));

            bundles.Add(new StyleBundle("~/Content/Helper").Include("~/Content/css/helper.css"));

            bundles.Add(new StyleBundle("~/Content/Image").Include("~/Content/css/image.css"));

            bundles.Add(new ScriptBundle("~/Index/js").Include(
                    "~/Content/js/Index.js",
                    "~/Content/js/echarts.js"));

            //上传插件css
            bundles.Add(new StyleBundle("~/webuploader/css").Include(
                "~/Content/js/webuploader/dist/webuploader.css"));
            //上传插件js
            bundles.Add(new ScriptBundle("~/webuploader/js").Include(
                "~/Content/js/webuploader/dist/webuploader.html5only.js"));

            //kindeditor 4.1.11 富文本编辑器

            bundles.Add(new StyleBundle("~/kindeditor/css").Include(
                "~/Content/js/kindeditor/themes/default/default.css"));

            //上传插件js
            bundles.Add(new ScriptBundle("~/kindeditor/js").Include(
                "~/Content/js/kindeditor/kindeditor-all.js",
                "~/Content/js/kindeditor/lang/zh-CN.js"));
        }
    }
}